<template>
	<view style="padding-top: 30rpx;">
		<zb-table :show-header="true" :columns="column" :stripe="true" :border="true"
			:data="list" @rowClick="rowClick"></zb-table>
	</view>
</template>

<script>
	import zbTable from '../../../components/zb-table/zb-table'
	import {
		goodsstores_recommend,
		goodsDistribution,
		InformationUserInfo
	} from '@/common/http/api.js'
	export default {
		props:['list'],
		components:{
			'zb-table': zbTable
		},
		data() {
			return {
				column: [
					
					{
						name: 'name',
						label: '排名',
						type: 'index',
						width: 60,
						align: 'center'
					},
					// {
					// 	name: 'categories',
					// 	label: '品类',
					// 	sorter: false,
					// 	align: 'center',
					// },
					{
						name: 'name',
						label: '商品名',
						width: 230,
						align: 'center',
					}, 
					{
						name: 'Sales',
						label: '平台总销量',
						align: 'center',
					},
					// {
					// 	name: 'teaching',
					// 	label: '商品评分',
					// 	align: 'center'
					// }, 
				],
				userInfo: ''
				
			}
		},
		created() {
			InformationUserInfo().then(res=>{
				this.userInfo = res.data
			})
		},
		methods:{
			rowClick(e,index){
		
				uni.navigateTo({
					url:`/pagesA/shopping/detail?id=${e.id}&type=3&business_card_id=&nickname=` + this.userInfo.nickname
				})
			}
		}
	}
</script>

<style>
</style>